<div class="col-sm-12">
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="col-sm-12">
                <div class="row">
                    <div class="col-sm-2">
                        <select class="form-control" ng-model="viewcode" ng-options="view.code as view.name for view in attrarr" ng-change="change(viewcode)">
                            <option value=""> -- 全部景区 -- </option>
                        </select> &nbsp;&nbsp;&nbsp;&nbsp;
                    </div>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="section.start.date.lable" is-open="section.start.date.opened"
                            ng-click="dateOpen($event, section.start.date)" max-date="section.start.date.value" placeholder="开始时间"
                            ng-required="true" close-text="关闭" current-text="今天" clear-text="清除" readonly/>
                    </div>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="section.end.date.lable" is-open="section.end.date.opened"
                            ng-click="dateOpen($event, section.end.date)" max-date="section.end.date.value" placeholder="结束时间"
                            ng-required="true" close-text="关闭" current-text="今天" clear-text="清除" readonly/>
                    </div>
                    <div class="col-sm-2 pull-right">
                        <button type="button" class="btn btn-info search pull-right btn-block" ng-click="load()">立即搜索</button>
                    </div>
                    <div class="col-sm-2 pull-right">
                        <button type="button" class="btn btn-default search pull-right btn-block" ng-click="exportToExcel('#Excel_table')">导出</button>
                        <a id="dlink" download="{{ExcelName}}.xls" ng-show="false"></a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-bordered" id="Excel_table">
                <thead>
                    <tr>
                        <th class="col-md-2 text-center">时间</th>
                        <th class="col-md-2 text-center">使用景区</th>
                        <th class="col-md-3 text-center">产品名称</th>
                        <th class="col-md-4 text-center">票名称</th>
                        <th class="col-md-1 text-center">使用数量</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="obj in objs | filter:myFilter">
                        <td class="text-center">{{obj.date}}</td>
                        <td class="text-center">{{obj.place_name}}</td>
                        <td class="text-center">{{obj.sale_name}}</td>
                        <td class="text-center">{{obj.ticket_type_name}}</td>
                        <td class="text-center">{{obj.used}}</td>
                    </tr>
                    <tr>
                        <td colspan="5" align="right">
                            总计: {{totalUsed}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>


</div>